#include <iostream>

using namespace std;

template <typename T>
int seq_search(T in[],const int len,const T n){
    for(int i=0;i<len;i++){
        if(in[i]==n){
            return i;
        }
    }
    return -1;
}

int main(){
    
    const int len=10; 
    const int target =9;
    int in[len]={1,4,5,3,7,2,9,6,8,0};
    int idx=seq_search(in,len,target);
    cout<<idx+1<<endl;
    if(idx<0){
        cout<<"未找到"<<endl;
    } else{
        cout<<"找到"<<target<<",位置："<<" "<<endl;
        cout<<idx+1<<endl;
    }
    return 0;
}